package com.wei.web.middleware.httpfilter.enums;

public enum ErrorEnum {

    UNKNOWN_ERROR("unknow_error", "unknow error"),
    JWT_TOKEN_INVALID("jwt_invalid", "jwt token invalid"),
    NAME_DUPLICATE("duplicate_name", "filter name is duplicate"),
    LOAD_CUSTOM_FILTER_CLASS_ERROR("load_custom_filter_class_error", "failed to load custom filter class"),
    INVALID_FILTER_TYPE("invalid_filter_type", "invalid filter type."),

    ;

    private String code;

    private String message;

    ErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
